home *** CD-ROM | disk | FTP | other *** search
/ DOKAN 6 / Dokan 06.iso / Progs / JDic / FONTFILE.DOC < prev    next >
Encoding:
Text File  |  1995-12-11  |  4.1 KB  |  101 lines

  1.  
  2. FONTFILE.DOC
  3. ============
  4.                                        
  5. [A short essay by Jim Breen.] 
  6.  
  7. This document briefly describes the main 16x16 bit-mapped font files used by 
  8. quite a lot of software running under DOS and Windows  to  display  Japanese 
  9. text. All of the files described here are in the Public Domain. 
  10.  
  11. All  these  files are binary files,  with each character stored as 32 bytes. 
  12. Each pair of bytes within the character represents a row,  but the bit-order 
  13. of each byte is reversed (it was done this way back in the dark ages of slow 
  14. XTs to speed up display.) 
  15.  
  16.  
  17. FONT FILES FOR JIS X 0208
  18. -------------------------
  19.                             
  20. The very first font-files to come into regular use on non-Japanese PCs were 
  21.  
  22.     K16JIS1.FNT and
  23.     K16JIS2.FNT
  24.                    
  25. These  contained  the JIS X 0208-1983 character set,  with the Level 2 kanji 
  26. being split into the second file.  They were  used  a  lot  in  the  earlier 
  27. software, and still are used in quite a few programs.  I don't know for sure 
  28. who compiled them,  but I think it was either Izumi Ohzawa,  who  wrote  the 
  29. original  KD  (Kanji  Driver),  or Seiichi Nomura and Seke Wei who wrote the 
  30. "jis.pas" on which was based.  A feature of these files is that the gaps  in 
  31. the  set have been closed up,  and hence software using the files must use a 
  32. table to map the kanji code to the file offset.  In  JDIC/JREADER  I  use  a 
  33. table taken from KD, and I suspect Mark Edwards did the same in MOKE and KG. 
  34.  
  35. These files are available all over the place.
  36.  
  37. When  he  released  Version  2.1  of MOKE,  Mark Edwards began using another 
  38. 16-bit file: 
  39.  
  40. KIJIS16.FNT
  41.  
  42. This file had the same contents as the K16JIS*.FNT files,  but the two kanji 
  43. levels  were put in the one file,  and there was no closure of the gaps,  so 
  44. that an offset could be simply calculated from the  kanji  code.  I  started 
  45. using  this font file as the preferred alternative in JDIC/JREADER.  I think 
  46. Mark did not intend the file to be PD,  but released  it  in  his  Shareware 
  47. WinJDic a couple of years later. 
  48.  
  49. In December 1995, I rebuilt KIJIS16.FNT file using the 16-bit "bdf" file for 
  50. the  JIS  X  0208-1990  set.  This updated file includes the two extra kanji 
  51. which were added to JIS X 0208 in the 1990 revision,  and has the  kanji  in 
  52. the forms documented in the JIS standard (the earlier file had some kanji in 
  53. a  highly  simplified  form.)  I  continued  to use the same name,  as it is 
  54. hard-coded into much of the software.  To tell the files apart,  look at the 
  55. dates and sizes. 
  56.  
  57. Mark Edwards' original is:                 
  58.  
  59. KIJIS16  FNT       256,272 02/02/92   10:56
  60.             
  61. and my rebuilt version is:                 
  62.  
  63. KIJIS16  FNT       252,672 10/12/95    0:58
  64.  
  65. (Don't ask me why the older file is bigger.)
  66.  
  67. My own JDIC/JREADER software  will  use  the  KIJIS16>FNT  file,  if  it  is 
  68. available, otherwise the K16JIS*.FNT files will be used. 
  69.  
  70.  
  71. FONT FILES FOR ASCII
  72. --------------------
  73.  
  74. Also  in  MOKE  2.1,  Mark  introduced  a  small  16-bit  font file of ASCII 
  75. characters which look a bit better than the "bgi" fonts available  with  the 
  76. Borland  Graphics  library.  He  made  the  file  (KIASCII.FNT) available to 
  77. everyone. 
  78.  
  79. KIASCII  FNT         3,584 02/02/92   10:39
  80.                     
  81.  
  82. FONT FILE FOR JIS 0212
  83. ----------------------
  84.  
  85. In November 1995,  I created a font file for the JIS X  0212-1990  character 
  86. set,  which  comprises some additional special characters and an extra 5,801 
  87. kanji.  This file was created from the "bdf" file commonly used with  "mule" 
  88. (the  multi-lingual  extension  to  emacs),  which is one of the few editors 
  89. cpable of handling these characters. The file is: 
  90.  
  91. JIS21216 FNT       231,616 25/11/95    0:40
  92.  
  93. At the time of writing,  the only software to use this file is the beta-test 
  94. version 2.6 of my own JREADER program, which has been modified to handle the 
  95. EUC Code 3 in which the JIS X 0212 characters are encoded. 
  96.                                                           
  97.  
  98. Jim Breen
  99. jwb@rdt.monash.edu.au
  100. December 1995
  101.